-- GENERATED SPELL FOR [Gadgetzan Bruiser] --


function spell0_9460(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9460', 5322, 1)
end

function spell1_9460(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9460', 541, 1)
end

function Sorts_9460(pUnit, Event)
local choix_sorts_9460 = math.random(0, 1)
if choix_sorts_9460 == 0 then
pUnit:RegisterEvent('spell0_9460', 1, 1)
end
if choix_sorts_9460 == 1 then
pUnit:RegisterEvent('spell1_9460', 1, 1)
end
end

function mob9460_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9460', math.random(1500, 3000), 1)
end

function mob9460_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9460_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9460_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9460, 1, 'mob9460_Action')
RegisterUnitEvent(9460, 2, 'mob9460_Leave')
RegisterUnitEvent(9460, 3, 'mob9460_Kill')
RegisterUnitEvent(9460, 4, 'mob9460_Die')
